<!-- 组合式API -->

<template lang="">
  <div>数字：{{number}}</div>

  <button @click="addNumber">+1</button>
</template>

<script setup>
import { ref } from 'vue'
let numbr = ref(1)
 const addNumber =() =>{  //=> 简体函数用于简化API
number.value++
    }


</script>